<?php
/**
 * Joomla! 1.5 component JoomGPSTracks
 *
 * @version $Id: gps_config.php 2009-06-24 15:40:19 svn $
 * @author Michael Pfister
 * @package joomGPStracks
 * @subpackage backend
 * @license GNU/GPL
 * @filesource
 *
 */

// no direct access
defined('_JEXEC') or die('Restricted access');
/**
 * Table class
 * 
 */
class TableGps_config extends JTable  {

    var $id             = NULL;

    var $gid            = NULL;

    var $apikey         = NULL;

    var $unit           = NULL;

    var $type           = NULL;

    var $max_size       = NULL;

    var $terms          = NULL;

    var $terms_id       = NULL;

    var $sort           = NULL;

    var $map_height     = NULL;

    var $map_width      = NULL;

    var $map_type       = NULL;

    var $charts_width   = NULL;

    var $charts_heigth  = NULL;

    var $charts_linec   = NULL;

    var $charts_bg      = NULL;

    var $profile        = NULL;

    var $template       = NULL;

    var $comment_who    = NULL;

    var $inform_autor   = NULL;

    var $captcha        = NULL;

    var $ordering       = NULL;

    var $comments       = NULL;

    var $access         = NULL;

    /**
     *
     * @param object $db
     */
    function __construct(& $db) {
        parent::__construct('#__gps_config', 'id', $db);
    }

    /**
     *
     * @param arrray $array
     * @param string $ignore
     * @return object
     */
    function bind($array, $ignore = '')
    {
        if (key_exists( 'params', $array ) && is_array( $array['params'] ))
        {
            $registry = new JRegistry();
            $registry->loadArray($array['params']);
            $array['params'] = $registry->toString();
        }

        return parent::bind($array, $ignore);
    }
}
?>
